<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<input class="crud" type="text"
	id="id_<c:out value="${field.def.name}"/>" 
	name="<c:out value="${field.def.name}"/>" 
	value="<c:out value="${field.value}"/>" 
	maxlength="<c:out value="${field.def.length}"/>"
/>
<!-- NUMBER -->
<script language="javascript" type="text/javascript">

	document.getElementById('id_<c:out value="${field.def.name}"/>').regexp=
	<c:if test="${not empty field.def.validationExpression}">
		/<c:out value="${field.def.validationExpression}"/>/;
		document.getElementById('id_<c:out value="${field.def.name}"/>').err='<c:out value="${field.def.validationMessage}"/>';
	</c:if>
	<c:if test="${empty field.def.validationExpression}">
		/^[\d\.]*$/;
	</c:if>
	
	document.getElementById('id_<c:out value="${field.def.name}"/>')
		.realname='<c:out value="${field.def.label}"/>';
	<c:if test="${not field.def.nullable}">
		document.getElementById('id_<c:out value="${field.def.name}"/>').required=true ;
	</c:if>

</script>	
